package net.starwifi.duobao.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.Pattern;
import java.util.ArrayList;
import java.util.List;

/**
 * 商品分类
 * Created by ruoo on 2015/11/19.
 */
@Entity
@Table(name = "duob_db_product_type")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "duob_db_product_type_sequence")
public class DBProductType extends BaseEntity {


        private static final long serialVersionUID = -2489707888966667035L;

        /** 编号 */
        private String sn;

        /** 类型名 */
        private String name;

        /** 排序 */
        private int orderNum;


        private String imgPath;

        /**类型状态*/
        private int status;


    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Column(nullable = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(nullable = false)
    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    @Column(nullable = false)
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }
}
